package com.xc.content.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xc.content.entity.TeachPlan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 课程计划(Teach_plan)表数据库访问层
 *
 * @author makejava
 * @since 2025-01-07 09:30:14
 */
@Mapper
public interface TeachPlanMapper extends BaseMapper<TeachPlan> {
    int insertBatch(@Param("teachPlanList") List<TeachPlan> teachPlanList);
    int update(@Param("teachPlan") TeachPlan teachPlan);
    TeachPlan selectById(@Param("id") String id);
    List<TeachPlan> selectListByParentId(@Param("id") String id);
    Integer selectMaxOrderByGrade(@Param("grade") int grade);
    int deleteBatch(@Param("ids") List<String> ids);
    int addTeachPlan(@Param("teachPlan") TeachPlan teachPlan);
    List<TeachPlan> queryList();
    List<TeachPlan> selectListByParentIds(@Param("ids") List<String> ids);
    Integer selectMaxOrderByGradeAndParentId(@Param("grade") int grade, @Param("parentId") String parentId);



}

